package com.xs.smc.bad;

import com.xs.smc.entity.Order;
import com.xs.smc.enums.OrderStatus;

public class Main {
    public static void main(String[] args) {
        Order order = new Order(11l);
        order.setStatus(OrderStatus.CONFIRMED);     // 已接单
        OrderService orderService = new OrderService();

        try {
            orderService.deliver(order);
        } catch (Exception e) {
            System.out.println("异常：" + e.getMessage());
        }
    }
}